import { http } from "@/utils/http";

// 获取邀请函信息
export type InvitationResponse = {
  code: number;
  msg: "string";
  time: string;
  data: {
    total: number;
    page: number;
    limit: number;
    list: {
      id: number;
      exhibitor_id: number;
      inviter: string;
      img: string;
    };
  };
};

// 获取邀请函信息
export const getInvitation = (id: number, exhibitor_id?: number) => {
  return http.request("get", "/api/invitation/detail", {
    params: {
      id,
      exhibitor_id
    }
  });
};
